﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EFB RID: 3835
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueHandbookMiracleInfo : IMessage<RogueHandbookMiracleInfo>, IMessage, IEquatable<RogueHandbookMiracleInfo>, IDeepCloneable<RogueHandbookMiracleInfo>, IBufferMessage
	{
		// Token: 0x170030BD RID: 12477
		// (get) Token: 0x0600AC0D RID: 44045 RVA: 0x001D1A05 File Offset: 0x001CFC05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueHandbookMiracleInfo> Parser
		{
			get
			{
				return RogueHandbookMiracleInfo._parser;
			}
		}

		// Token: 0x170030BE RID: 12478
		// (get) Token: 0x0600AC0E RID: 44046 RVA: 0x001D1A0C File Offset: 0x001CFC0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueHandbookMiracleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170030BF RID: 12479
		// (get) Token: 0x0600AC0F RID: 44047 RVA: 0x001D1A1E File Offset: 0x001CFC1E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueHandbookMiracleInfo.Descriptor;
			}
		}

		// Token: 0x0600AC10 RID: 44048 RVA: 0x001D1A25 File Offset: 0x001CFC25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMiracleInfo()
		{
		}

		// Token: 0x0600AC11 RID: 44049 RVA: 0x001D1A2D File Offset: 0x001CFC2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMiracleInfo(RogueHandbookMiracleInfo other) : this()
		{
			this.hasTakenReward_ = other.hasTakenReward_;
			this.miracleHandbookId_ = other.miracleHandbookId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AC12 RID: 44050 RVA: 0x001D1A5E File Offset: 0x001CFC5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueHandbookMiracleInfo Clone()
		{
			return new RogueHandbookMiracleInfo(this);
		}

		// Token: 0x170030C0 RID: 12480
		// (get) Token: 0x0600AC13 RID: 44051 RVA: 0x001D1A66 File Offset: 0x001CFC66
		// (set) Token: 0x0600AC14 RID: 44052 RVA: 0x001D1A6E File Offset: 0x001CFC6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool HasTakenReward
		{
			get
			{
				return this.hasTakenReward_;
			}
			set
			{
				this.hasTakenReward_ = value;
			}
		}

		// Token: 0x170030C1 RID: 12481
		// (get) Token: 0x0600AC15 RID: 44053 RVA: 0x001D1A77 File Offset: 0x001CFC77
		// (set) Token: 0x0600AC16 RID: 44054 RVA: 0x001D1A7F File Offset: 0x001CFC7F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MiracleHandbookId
		{
			get
			{
				return this.miracleHandbookId_;
			}
			set
			{
				this.miracleHandbookId_ = value;
			}
		}

		// Token: 0x0600AC17 RID: 44055 RVA: 0x001D1A88 File Offset: 0x001CFC88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueHandbookMiracleInfo);
		}

		// Token: 0x0600AC18 RID: 44056 RVA: 0x001D1A96 File Offset: 0x001CFC96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueHandbookMiracleInfo other)
		{
			return other != null && (other == this || (this.HasTakenReward == other.HasTakenReward && this.MiracleHandbookId == other.MiracleHandbookId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AC19 RID: 44057 RVA: 0x001D1AD4 File Offset: 0x001CFCD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.HasTakenReward)
			{
				num ^= this.HasTakenReward.GetHashCode();
			}
			if (this.MiracleHandbookId != 0U)
			{
				num ^= this.MiracleHandbookId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AC1A RID: 44058 RVA: 0x001D1B2C File Offset: 0x001CFD2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AC1B RID: 44059 RVA: 0x001D1B34 File Offset: 0x001CFD34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AC1C RID: 44060 RVA: 0x001D1B40 File Offset: 0x001CFD40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.HasTakenReward)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.HasTakenReward);
			}
			if (this.MiracleHandbookId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.MiracleHandbookId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AC1D RID: 44061 RVA: 0x001D1B9C File Offset: 0x001CFD9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.HasTakenReward)
			{
				num += 2;
			}
			if (this.MiracleHandbookId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MiracleHandbookId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AC1E RID: 44062 RVA: 0x001D1BE8 File Offset: 0x001CFDE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueHandbookMiracleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.HasTakenReward)
			{
				this.HasTakenReward = other.HasTakenReward;
			}
			if (other.MiracleHandbookId != 0U)
			{
				this.MiracleHandbookId = other.MiracleHandbookId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AC1F RID: 44063 RVA: 0x001D1C38 File Offset: 0x001CFE38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AC20 RID: 44064 RVA: 0x001D1C44 File Offset: 0x001CFE44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MiracleHandbookId = input.ReadUInt32();
					}
				}
				else
				{
					this.HasTakenReward = input.ReadBool();
				}
			}
		}

		// Token: 0x040045E1 RID: 17889
		private static readonly MessageParser<RogueHandbookMiracleInfo> _parser = new MessageParser<RogueHandbookMiracleInfo>(() => new RogueHandbookMiracleInfo());

		// Token: 0x040045E2 RID: 17890
		private UnknownFieldSet _unknownFields;

		// Token: 0x040045E3 RID: 17891
		public const int HasTakenRewardFieldNumber = 9;

		// Token: 0x040045E4 RID: 17892
		private bool hasTakenReward_;

		// Token: 0x040045E5 RID: 17893
		public const int MiracleHandbookIdFieldNumber = 13;

		// Token: 0x040045E6 RID: 17894
		private uint miracleHandbookId_;
	}
}
